﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Ext.Net.MVC;
using Sharp.DataTransferObject;
using Sharp.Domain.PlatformBoundedContext.OrgModule.Aggregates;
using Sharp.Platform;
using Sharp.Platform.List;
using Sharp.Platform.Other;
using Column = Ext.Net.MVC.ColumnAttribute;
using DateColumn = Ext.Net.MVC.DateColumnAttribute;
namespace Sharp.Web.Models
{
    /// <summary>
    /// 业务组织结构
    /// </summary>
    [Title("业务组织结构管理")]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    public partial class OrgForBusinesIndexModel 
    {
        /// <summary>
        /// Id
        /// </summary>
        [Column(Hidden = true)]
        public System.Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Column(Width = 200, Text = "名称")]
        public string Title { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Width = 250, Text = "备注")]
        public string Remark { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [DateColumn(Width = 140, Text = "添加时间", Format = "yyyy-MM-dd HH:mm:ss")]
        public System.DateTime? CheckInTime { get; set; }
        /// <summary>
        /// 录入员的id
        /// </summary>
        /// <value>录入员的id</value>
        public System.Guid? CheckInUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary> 
        [DateColumn(Width = 140, Text = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")]
        public System.DateTime? ModifiTime { get; set; }
        /// <summary>
        /// 修改数据的用户Id
        /// </summary>
        /// <value>修改数据的用户Id</value>
        public System.Guid? ModifiedUserId { get; set; }
        /// <summary>
        /// 上级组织机构
        /// </summary>
        public virtual OrgForBusiness ParentOrgForBusiness { get; set; }
 

    }

    public partial class OrgForBusinesIndexModel : SharpList
    {
        public OrgForBusinesIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;
        }

    }
}